<script lang="ts" setup>
import {ref,defineProps} from 'vue'
import { ElButton} from "element-plus"


const props= defineProps({
    title: {
        type: String,
        default: () => ''
    },
    type:{
        type:String,
        default:()=>'edit'
    }
})
const title=ref('标题')

</script>

<template>
        <el-button
        :icon="props.type==='edit'?'Edit':'delete'" 
        :color="props.type==='edit'?'#0d64f1':'#f41414'"
        :type="props.type==='edit'?'primary':'danger'"
        circle
        />
        


</template>

<style scoped>
.a{
    

}
</style>